package com.tiny.cqzcp.service.klb.impl;

import com.tiny.cqzcp.dao.klb.KlbOneDao;
import com.tiny.cqzcp.dao.klb.KlbOneInfoDao;
import com.tiny.cqzcp.pojo.klb.KlbOne;
import com.tiny.cqzcp.pojo.klb.KlbOneInfo;
import com.tiny.cqzcp.service.klb.KlbOneService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("KlbOneService")
public class KlbOneServiceImpl implements KlbOneService {
	

	private KlbOneDao KlbOneDao;
	private KlbOneInfoDao KlbOneInfoDao;

	@Autowired
	public KlbOneServiceImpl(KlbOneDao KlbOneDao,KlbOneInfoDao KlbOneInfoDao){
		this.KlbOneDao = KlbOneDao;
		this.KlbOneInfoDao = KlbOneInfoDao;
	}

	@Override
	public int createOneCombinationRecord() {
		return 0;
	}

	@Override
	public KlbOne queryOneRecordByNumbers(String numbers) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<KlbOne> queryOneAllRecords() {
		return KlbOneDao.selectAll();
	}

	@Override
	public int updateRecord(KlbOne record) {
		return KlbOneDao.update(record);
	}

	@Override
	public List<KlbOne> queryOneByLimit(Integer start, Integer end) {
		return KlbOneDao.selectByLimit(start, end);
	}

	@Override
	public int insertInfoRecord(KlbOneInfo record) {
		return KlbOneInfoDao.insert(record);
	}

	@Override
	public void batchUpdate(List<KlbOne> nts) {
		KlbOneDao.batchUpdate(nts);
	}

	@Override
	public void batchInsertInfo(List<KlbOneInfo> ntis) {
		KlbOneInfoDao.batchInsertInfo(ntis);
		
	}

	@Override
	public List<KlbOne> queryOneByTerm(String term) {
		return KlbOneDao.selectByTerm(term);
	}

}
